home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / RTF / RichTextP.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  84 lines

  1. /* $Header: /usr/people/pcd/Src/RTF/RCS/RichTextP.h,v 1.1 92/11/23 12:58:50 pcd Exp Locker: pcd $
  2.  *
  3.  * from: SCCSID[] = "OSF/Motif: @(#)DrawingAP.h    3.6.1.2 91/03/20";
  4.  */
  5.  
  6. #ifndef _XcRichTextP_h
  7. #define _XcRichTextP_h
  8.  
  9. #include "RichText.h"
  10. /*
  11. #include <Xm/XmP.h>
  12. */
  13. #if ((XmVERSION <= 1) && (XmREVISION <= 1))
  14. #include <Xm/XmP.h>
  15. #else
  16. #include <Xm/PrimitiveP.h>
  17. #endif
  18.  
  19. #include "xtextview_c.h"
  20.  
  21. /*  New fields for the RichText widget class record  */
  22.  
  23. typedef struct
  24. {
  25.    int mumble;   /* No new procedures */
  26. } XcRichTextClassPart;
  27.  
  28.  
  29. /* Full class record declaration */
  30.  
  31. typedef struct _XcRichTextClassRec
  32. {
  33.     CoreClassPart        core_class;
  34.     XmPrimitiveClassPart    primitive_class;
  35.     XcRichTextClassPart     rich_text_class;
  36. } XcRichTextClassRec;
  37.  
  38. externalref XcRichTextClassRec xcRichTextClassRec;
  39.  
  40.  
  41. /* New fields for the RichText widget record */
  42.  
  43. typedef struct
  44. {
  45.   /* resources */
  46.   String value;
  47.   XmFontList fontList;
  48.   Boolean rtf;
  49.   XtCallbackList motion_verify_callback;
  50.   Dimension       margin_height;   /* margin around widget */
  51.   Dimension       margin_width;
  52.  
  53.   /* private data */
  54.   void*  flow;
  55.   long mark, point; /* selection */
  56.   long bytes;
  57.   int sx[4], sy[4]; /* selection region */
  58.     /*
  59.      * x[0] = left margin
  60.      * x[3] = right margin
  61.      * x[1],y[0],y[1] = x, base, top of character f
  62.      * x[2],y[2],y[3] = x, base, top of character l
  63.      */
  64.  
  65.   GC invert; /* selection feedback */
  66. } XcRichTextPart;
  67.  
  68.  
  69. /****************************************************************
  70.  *
  71.  * Full instance record declaration
  72.  *
  73.  ****************************************************************/
  74.  
  75. typedef struct _XcRichTextRec
  76. {
  77.     CorePart        core;
  78.     XmPrimitivePart         primitive;
  79.     XcRichTextPart            rich_text;
  80. } XcRichTextRec;
  81.  
  82. #endif /* _XcRichTextP_h */
  83. /* DON'T ADD ANYTHING AFTER THIS #endif */
  84.